DEMO 3: Let's look at how we can use a loop in our program add all the numbers in a list.

Remember that the first step in your algorithm for finding the mean is to add up all the numbers in your data set.

  • Adding a list of numbers can also be broken down into an algorithm, or series of steps that solve a problem.
  • Click Run to see a short demo that explain how your loop will work.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)